﻿@{
    ViewBag.Title = "ReceiptFlow";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}
<head>
    <title></title>
    <script type="text/javascript">
        function SaveReceiptData() {
            var approvalOpinion = $("#taApprovalOpinion").val();
            $('#frmReceipt').form('submit', {
                url: '/Flow/SaveReceiptData?approvalOpinion=' + approvalOpinion,
                onSubmit: function () {
                    if (approvalOpinion == "") {
                        $.EasyuiSlide("审批意见不能为空！");
                        return false;
                    }
                },
                success: function (data) {
                    window.parent.CloseWindow(6, '已阅成功！');
                },
                fail: function (data) {
                    $.EasyuiSlide(data);
                }
            });
        }
    </script>
</head>
<body>
    <div style="padding-top:5px;padding-left: 5px;padding-right:5px;">
        <form id="frmReceipt" method="post">
            <div>
                <input type="hidden" name="FlowCode" id="hFlowCode" value="@Model.FlowCode" />
                <input type="hidden" name="MessageID" id="hMessageID" value="@Model.MessageID" />
            </div>
        </form>
        <div region="center" style=" height: 150px;width:100%;">
            <table>
                <tr>
                    <td style=" text-align: right; width: 80px;"><span>审批意见：</span></td>
                    <td><textarea id="taApprovalOpinion" rows="9" style="width: 380px;"></textarea></td>
                </tr>
            </table>
        </div>
        <div style="margin-left: 5px; margin-top: 5px; text-align: right;">
            <input type="button" id="btnSave" value="保存" onclick="SaveReceiptData();" />
            <input type="button" id="btnCancel" value="取消" onclick="window.parent.CloseWindow(0);" />
        </div>
    </div>
</body>
